package com.rm.zeyou.pay.wxpay.constants;

/**
 * @Author ZhangKeChen
 * @Date 2022/11/1
 * @Description
 */

/**
 * 微信公众号请求地址配置
 */
public class WechatH5LoginUrlConstants {
    /**
     * 通过code换取网页授权access_token请求地址
     */
    public static String GetAccessTokenByCode = "https://api.weixin.qq.com/sns/oauth2/access_token";


    /**
     * 通过code换取网页授权access_token请求地址
     */
    public static String GetAuthorizationAccessTokenByCode = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=%s";

    /**
     * 拉取用户信息
     */
    public static String GetUserInfo = "https://api.weixin.qq.com/sns/userinfo";

    /**
     * 获取公众号的AccessToken
     */
    public static String GetGlobalAccessToken = "https://api.weixin.qq.com/cgi-bin/token?grant_type=%s&appid=%s&secret=%s";

    /**
     * 获取微信公众号JS接口的临时票据
     */
    public static String GetWxH5Ticket = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=%s&type=%s";


    /**
     * 刷新access_token    https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN
     */
    public static String RefreshAccessToken ="https://api.weixin.qq.com/sns/oauth2/refresh_token?";
}
